package jp.co.baka.pachinko.controller.top;

import jp.co.baka.pachinko.dto.UserDto;
import jp.co.baka.pachinko.service.UserService;
import jp.co.baka.pachinko.util.MyContrller;

import org.slim3.controller.Navigation;

public class IndexController extends MyContrller {

    @Override
    public Navigation run() throws Exception {


        UserDto user = UserService.getUser();
        if(user!=null){
            requestScope("user",user);
        }


        return forward("index.jsp");
    }
}
